#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include "InvertedPendulum.h"

class MainWindow : public QMainWindow {
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    InvertedPendulum pendulum;
    QTimer *timer;

protected:
    void paintEvent(QPaintEvent *event);

private slots:
    void updatePendulum();

};

#endif // MAINWINDOW_H
